package com.kobeliu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.kobeliu.mapper")
//开启事务
@EnableTransactionManagement
//开启远程调用
@EnableFeignClients
//开启服务的注册和发现
@EnableDiscoveryClient
//开启异步调用
@EnableAsync
public class AccountApplication {

    public static void main(String[] args) {

        SpringApplication.run(AccountApplication.class,args);

    }
}
